<template>
    <div>
        <h1>父组件: {{ count }}</h1>
        <button @click="count++">+1</button>
        <ChildComponent v-model:count="count" v-model:name="name"/>
    </div>
</template>

<script setup>
import { ref } from 'vue';
import ChildComponent from './ChildComponent.vue';

const count = ref(0);
const name = ref('张三');



</script>

<style scoped></style>